package com.lagou.service.impl;

import com.lagou.service.BHelloService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class BHelloServiceImpl implements BHelloService {

    @Override
    public void printIpB() {
        String client_ip = RpcContext.getContext().getAttachment("client_ip");
        System.out.println("B ip >>>>>>>" + client_ip);
    }
}
